import type { AppRouteModule } from '@/router/types';

import { LAYOUT } from '@/router/constant';

const collection: AppRouteModule = {
  path: '/collection',
  name: 'Collection',
  component: LAYOUT,
  redirect: '/collection/index',
  meta: {
    orderNo: 30,
    icon: 'ion:information-circle',
    title: '代收管理',
  },
  children: [
    {
      path: 'index',
      name: 'CollectionCheck',
      component: () => import('/@/views/collection/index.vue'),
      meta: {
        title: '新订单审核',
      },
    },
    {
      path: 'order',
      name: 'CollectionOrder',
      component: () => import('/@/views/collection/order.vue'),
      meta: {
        title: '代收订单管理',
      },
    },
    {
      path: 'add',
      name: 'CollectionAdd',
      component: () => import('/@/views/collection/add.vue'),
      meta: {
        title: '添加收款信息',
      },
    },
    {
      path: 'count',
      name: 'CollectionCount',
      component: () => import('/@/views/collection/count.vue'),
      meta: {
        title: '代收订单统计',
      },
    },
    {
      path: 'info',
      name: 'CollectionInfo',
      component: () => import('/@/views/collection/info.vue'),
      meta: {
        title: '代收通道信息',
      },
    },
  ],
};

export default collection;
